<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/salesinfo/payment_receipt_undone/q_payment_receipt_undone.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/salesinfo/payment_receipt_undone/q_payment_receipt_undone.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '未回款合同明细',
                name: 'payment_receipt_undone/q_payment_receipt_undone',
                url: "/q_payment_receipt_undone/",
                sortName: "合同编号"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"合同编号":"","客户":"","合同金额":[null,null],"未回款金额":[null,null]});
            const searchFormOptions = ref([[{"title":"合同编号","field":"合同编号","type":"like"},{"dataKey":"客户","data":[],"title":"客户","field":"客户","type":"select"},{"title":"合同金额","field":"合同金额","type":"range"},{"title":"未回款金额","field":"未回款金额","type":"range"}]]);
            const columns = ref([{field:'ID',title:'ID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'合同编号',title:'合同编号',type:'string',width:120,align:'left',sort:true},
                       {field:'客户',title:'客户',type:'int',bind:{ key:'客户',data:[]},width:80,align:'left'},
                       {field:'合同金额',title:'合同金额',type:'decimal',width:110,align:'left'},
                       {field:'回款金额',title:'回款金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'审核中回款金额',title:'审核中回款金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'未回款金额',title:'未回款金额',type:'decimal',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
